createEffect

abstract fun createEffect(type: EffectType): DesignBlock

Create a new effect block, fails if type is unknown or not a valid effect block type.

Return

the created effects handle.

Parameters

type

the type id of the effect.


abstract fun createEffect(type: String): DesignBlock

Deprecated

Use type safe overload instead.

Replace with

this.createEffect(EffectType.)

Create a new effect block, fails if type is unknown or not a valid effect block type.

Return

the created effects handle.

Parameters

type

the type id of the effect.